package com.fivefu.core.camera.services;

import com.fivefu.core.camera.entity.DbMonitorWorkorderRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 工单处置记录 服务类
 * </p>
 *
 * @author 
 * @since 2022-09-22 16:21:42
 */
public interface DbMonitorWorkorderRecordService extends IService<DbMonitorWorkorderRecord> {

    /**
     * 生成工单处置记录
     * @param orderId 工单编号
     * @param record 处置记录
     * @param userid 操作用户编号
     */
    void createWorkorderRecord(Long orderId, DbMonitorWorkorderRecord record, String userid);

    /**
     * 通过工单编号查询处置记录
     * @param orderId 工单编号
     * @return
     */
    List<DbMonitorWorkorderRecord> queryWorkorderRecordListByOrderId(Long orderId);

    /**
     *
     * 格式化工单处置记录
     * @param record
     */
    Map<String,Object> formatMonitorWorkorderRecord(DbMonitorWorkorderRecord record);


}
